package com.koron.ticket.work.workend.mapper;

import com.koron.ticket.work.workend.bean.WorkEnd;
import com.koron.ticket.work.workend.bean.WorkEndQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

public interface WorkEndMapper {
    void insert(WorkEnd workEnd);

    void update(WorkEnd workEnd);

    void deleteById(@Param("id") String id);

    List<WorkEnd> getList(WorkEndQuery workEndQuery);

    WorkEnd getSingle(WorkEndQuery workEndQuery);

    void deleteByWorkTicketId(@Param("workTicketId") String workTicketId);

    List<WorkEnd> queryByWorkTicketIdInAndStatus(@Param("workTicketIdCollection")Collection<String> workTicketIdCollection);

}
